dsh-web-mermaid: Offline rendering of Mermaid flowcharts in DSH Web

dsh-web-mermaid is a DSH Web plugin (MIT License) maintained by demo007x that renders Mermaid code blocks within chat messages into intuitive SVG graphics offline, addressing the issue of insufficient clarity when viewing raw source code. Featuring a built-in Mermaid runtime and no dependence on online CDNs, it supports 11 mainstream Mermaid chart types, including flowchart, sequenceDiagram, and gantt. Core features include a default image view with support for click-to-enlarge, zoom, and drag-to-pan, the ability to switch to a syntax-highlighted source code view at any time, and automatic re-rendering to match the DSH light or dark theme. Installation is simple, requiring simply adding it to the web profile via the `dsh plugin` command and reloading.

Read More